home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / util / stdm15.zip / SCRIPT.TXT < prev    next >
Text File  |  1994-12-16  |  9KB  |  429 lines

  1. //:C11
  2. //:I11
  3. //
  4. // Launch paintbrush.exe
  5. //
  6. :(pbrush.exe
  7. @Vv
  8. //
  9. //        SHOW SEVERAL INTRODUCTORY TEXT BOXES
  10. //
  11. :#L
  12. This small script will highlight several points of interest for you, as a demo
  13. script designer.
  14. I hope, you have already read README.TXT file, and you are familiar with the
  15. basic concepts of Stdemo Player. If not, you'll have a chance to do this later.
  16. .N
  17. As you can see, this box has two buttons. If you would like to stop this demo -
  18. select "Stop" button at any time, otherwise select "Continue". The same is correct
  19. for all dialog boxes to come.
  20. .N
  21. Try to move this dialog box, as you move any window. Note, however, that you can
  22. "drag" this box by selecting any point inside it, except buttons. It makes the whole
  23. business of moving a lot easier.
  24. #
  25. :#MU
  26. Even if you manage to move it outside the screen, so that it becomes impossible to
  27. move it back - you still are able to continue execution, by pressing C key, or to
  28. stop it by pressing S key.
  29. .S
  30. Note also how politely cursor points to the "Continue" button, so that the only
  31. things you have to do are: read and click.
  32. #
  33. :#M
  34. You may ask, how I created this solid background? Rather simple.
  35. I started the Paintbrush, and selected View Picture from it's menu.
  36. These are the commands, which have done this:
  37. .S
  38. :(pbrush.exe
  39. .N
  40. @Vv
  41. #
  42. //
  43. //        SHOW THE MAIN MENU
  44. //
  45. :LmainMenu
  46. :*L
  47. Now you may choose one of the topics and continue...
  48. 1startreadMe|Show readme.txt.
  49. 2startScriptTxt|Show script.txt ( currently running script).
  50. 4textBox|Demonstrate various TEXT  boxes.
  51. 5menuBox|Demonstrate various MENU  boxes.
  52. 6inputBox|Demonstrate various INPUT boxes.
  53. 7calcDemo|Demonstrate mouse actions.
  54. 8pbrushDemo|Extensive keyboard/mouse action script.
  55. 9finishDemo|Finish this demo.
  56. *
  57. //
  58. //            SHOW README.TXT
  59. //
  60. :LstartreadMe
  61. :(notepad.exe readme.txt|1
  62. :LcontrolNotepad
  63. :*MDR
  64. 1pageDown|Scroll one page down
  65. 2pageUp|Scroll one page up
  66. 3goBottom|Show the last page
  67. 4goTop|Show the first page
  68. 5closeReadme|Return to the main menu
  69. *
  70. :LpageDown
  71. ]+
  72. :GcontrolNotepad
  73. :LpageUp
  74. ]-
  75. :GcontrolNotepad
  76. :LgoBottom
  77. %]E
  78. :GcontrolNotepad
  79. :LgoTop
  80. %]H
  81. :GcontrolNotepad
  82. :LcloseReadme
  83. @FX
  84. :)
  85. :GmainMenu
  86. //
  87. //
  88. //             DEMONSTRATE VARIOUS TEXT BOXES
  89. //
  90. //
  91. :LtextBox
  92. :#W
  93. There are 5 text boxes available at the present time. They vary by their size
  94. only. Any can be placed at one of the 9 pre-defined screen locations.
  95. I'll show all of them one by one.
  96. .S
  97. This one - is the WIDE box.
  98. #
  99. :#NUL
  100. And this is the NARROW box. I programmed it to appear in the upper left corner
  101. of the screen.
  102. #
  103. :#SCD
  104. This one is SMALL. It is centered at the bottom of screen.
  105. #
  106. :#MRD
  107. This is the MEDIUM one.
  108. .S
  109. .S
  110. .S
  111. It is located in the bottom right corner.
  112. #
  113. :#L
  114. And finally the LARGE one.
  115. .N
  116. In the center.
  117. #
  118. :GmainMenu
  119. //
  120. //            SHOW README.TXT
  121. //
  122. :LstartScriptTxt
  123. :(notepad.exe script.txt|1
  124. :LcontrolScriptTxt
  125. :*MDR
  126. 1pageScriptDown|Scroll one page down
  127. 2pageScriptUp|Scroll one page up
  128. 3goScriptBottom|Show the last page
  129. 4goScriptTop|Show the first page
  130. 5closeScriptTxt|Return to the main menu
  131. *
  132. :LpageScriptDown
  133. ]+
  134. :GcontrolScriptTxt
  135. :LpageScriptUp
  136. ]-
  137. :GcontrolScriptTxt
  138. :LgoScriptBottom
  139. %]E
  140. :GcontrolScriptTxt
  141. :LgoScriptTop
  142. %]H
  143. :GcontrolScriptTxt
  144. :LcloseScriptTxt
  145. @FX
  146. :)
  147. :GmainMenu
  148. //
  149. //
  150. //             DEMONSTRATE VARIOUS MENU BOXES
  151. //
  152. //
  153. :LmenuBox
  154. :#M
  155. You actually just saw the MENU box - you've chosen this topic from it.
  156. .S
  157. Now, I'll show several more menu boxes to demonstrate how you can customize
  158. them.
  159. #
  160. :*S
  161. Small box has only two items.
  162. 1cmenu|Whatever you chose -
  163. 2cmenu|I go ahead...
  164. *
  165. :Lcmenu
  166. :#S
  167. Then I'll show the same box, but without the header text.
  168. .S
  169. Note that the header field is hidden.
  170. #
  171. :*S
  172. 1cmenu1|The same box, but...
  173. 2cmenu1|without the header field.
  174. *
  175. :Lcmenu1
  176. :*M
  177. This is the MEDIUM menu box. All 5 fields are present, as you see.
  178. 1cmenu2|First menu item...
  179. 2cmenu2|Second menu item...
  180. 3cmenu2|Third menu item...
  181. 4cmenu2|Fourth menu item...
  182. 5cmenu2|Fifth menu item...
  183. *
  184. :Lcmenu2
  185. :*M
  186. Now look, this is the same box - but I skipped 1-st, 3-rd and 5-th items.
  187. 2cmenu3|Second menu item...
  188. 4cmenu3|Fourth menu item...
  189. *
  190. :Lcmenu3
  191. :*L
  192. And here the full-blown LARGE menu box goes... Of course, when you code it,
  193. you may skip the header and/or any of the items. Isn't it nice to have so many choices?
  194. 1cmenu4|This is the first item of the large menu box.
  195. 2cmenu4|This is the second item of the large menu box.
  196. 3cmenu4|This is the third item of the large menu box.
  197. 4cmenu4|This is the fourth item of the large menu box.
  198. 5cmenu4|This is the fifth item of the large menu box.
  199. 6cmenu4|This is the sixth item of the large menu box.
  200. 7cmenu4|This is the seventh item of the large menu box.
  201. 8cmenu4|This is the eighth item of the large menu box.
  202. 9cmenu4|This is the ninth item of the large menu box.
  203. *
  204. :Lcmenu4
  205. :GmainMenu
  206. :LinputBox
  207. //
  208. //
  209. //             DEMONSTRATE VARIOUS INPUT BOXES
  210. //
  211. //
  212. :#M
  213. There are 3 available sizes for the INPUT boxes: small, medium and large.
  214. Every box has a header text field and from 1 to 9 edit fields. For the medium and
  215. large boxes every edit field paired with the description field.
  216. .S
  217. You'd better look than read...
  218. #
  219. // Clear all variables.
  220. :$1
  221. :$2
  222. :$3
  223. :$4
  224. :$5
  225. :$6
  226. :$7
  227. :$8
  228. :$9
  229. :%S
  230. This is the small input box.
  231. Note, it has only one editable field.
  232. 1
  233. %
  234. :$1This is the text, assigned to $1
  235. :%S
  236. This is the same box, but it's edit field
  237. is not empty.
  238. 1
  239. %
  240. :$1
  241. :%M
  242. This is the MEDIUM input box. As you see it has 5 edit fields.
  243. Enter something...
  244. 1Description 1
  245. 2Description 2
  246. 3Description 3
  247. 4Description 4
  248. 5Description 5
  249. %
  250. :%M
  251. This is the same MEDIUM input box, but I skipped the 1-st and the 5-th fields.
  252. 2Description 2
  253. 3Description 3
  254. 4Description 4
  255. %
  256. :%L
  257. This is the full LARGE input box. Note that
  258. some fields are without description.
  259. 1Description for the field 1
  260. 2Description for the field 2
  261. 3Description for the field 3
  262. 4Description for the field 4
  263. 5
  264. 6Description for the field 6
  265. 7Description for the field 7
  266. 8
  267. 9Description for the field 9
  268. %
  269. :%L
  270. And this is the same LARGE input box. You may skip some fields in it. Note that
  271. some fields are missing.
  272. 1Description for the field 1
  273. 3Description for the field 3
  274. 5Description for the field 5
  275. 7Description for the field 7
  276. 9Description for the field 9
  277. %
  278. :#S
  279. And now I'll show how you can use what is entered into the edit
  280. fields of the INPUT box. I hope, you have typed something.
  281. #
  282. :(notepad.exe|1
  283. If you have entered some text into the edit fields,]!
  284. I'll type it here (values are enclosed in the angle brackets)]:]!
  285. The first field has the value]:        <$1>]!
  286. The second field has the value]:        <$2>]!
  287. The third field has the value]:        <$3>]!
  288. The fourth field has the value]:        <$4>]!
  289. The fifth field has the value]:        <$5>]!
  290. The sixth field has the value]:        <$6>]!
  291. The seventh field has the value]:    <$7>]!
  292. The eighth field has the value]:        <$8>]!
  293. The ninth field has the value]:        <$9>]!
  294. :#SDR
  295. Simply click continue...
  296. #
  297. @FX
  298. :)
  299. // clear all variables
  300. :$1
  301. :$2
  302. :$3
  303. :$4
  304. :$5
  305. :$6
  306. :$7
  307. :$8
  308. :$9
  309. :GmainMenu
  310. //
  311. //            DEMONSTRATE MOUSE ACTIONS
  312. //
  313. :LcalcDemo
  314. :(calc.exe
  315. :C11
  316. :S324|283
  317. :OFC
  318. @VT
  319. // Clear
  320. :#SUL
  321. I'm going to move the cursor to the 'CLEAR' button - and click.
  322. #
  323. :M0|0
  324. :M38|66|100
  325. :BL1:BL0
  326. // click 2
  327. :#SUL
  328. Now I'm going to move the cursor to the '2' button - and click.
  329. #
  330. :M135|196|100
  331. :BL1:BL0
  332. // click *
  333. :#SUL
  334. Now I'll move to the '*' button - and click.
  335. #
  336. :M242|152|100
  337. :BL1:BL0
  338. // click 3
  339. :#SUL
  340. And here we go to the '3' button - and click.
  341. #
  342. :M189|196|100
  343. :BL1:BL0
  344. // click =
  345. :#SUL
  346. Now I'm going to click on '=' and, truly, I'm expecting to get....
  347. #
  348. :M295|240|100
  349. :BL1:BL0
  350. :#SUL
  351. Don't tell me that the result is not equal to six, please!
  352. #
  353. :C00
  354. @E]<]|]|]|]|]|]!
  355. :)
  356. :GmainMenu
  357. :LpbrushDemo
  358. //
  359. // Launch paintbrush.exe
  360. //
  361. :(pbrush.exe
  362. :C11
  363. //:=200
  364. // Make sure the paint area is big enough
  365. @OI@D@O]~]!
  366. //Make it fullscreen
  367. @F]<]|]|]|]|]!
  368. // Select font
  369. @TFTimes New Roman]~Bold]~32]~]~]!
  370. // Assume, that the whole windows area is 1024x768
  371. :OSW
  372. :S1024|768
  373. // Select the tool
  374. ]~]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<
  375. ]|]|]|]I
  376. // Select the line width
  377. ]~]^]^]^]^]^]^]^]^]|]|]|]|]I
  378. // Select the light gray
  379. ]~]^]<]<]<]<]<]<]<]<]<]<]<]<]<]<]<
  380. ]>]I
  381. // Fill The area
  382. ]~
  383. ]I
  384. // Select white
  385. ]~]~]~]<]I]~
  386. // Select Text and type in white
  387. ]~]^]^]>]I
  388. // Set Cursor to 150x150
  389. :M150|150
  390. ]IIsn't it nice?]!     Do you like it?]!          Please, register!]!Mik.
  391. // Select dark gray and type
  392. ]~]<]I]>]I]~]~]>]|]I]~
  393. // Set Cursor to 152x152
  394. :M152|152
  395. ]IIsn't it nice?]!     Do you like it?]!          Please, register!]!Mik.
  396. // Select light gray and type
  397. ]~]<]I]>]I]~]~]^]I]~
  398. // Set Cursor to 151x151
  399. :M151|151
  400. ]IIsn't it nice?]!     Do you like it?]!          Please, register!]!Mik.
  401. :C00
  402. :#SDR
  403. I can't believe you didn't enjoy it...
  404. #
  405. //
  406. // Kill paintbrush
  407. //
  408. @FXN
  409. :)
  410. :GmainMenu
  411. //
  412. // SPECIAL __STOP__ PROCESSING
  413. // 
  414. :LfinishDemo
  415. //
  416. // Kill paintbrush
  417. //
  418. ]!
  419. @FX
  420. :)
  421. :Gstop
  422. :L__STOP__
  423. :X0
  424. :#S
  425. I just wanted to show here that you can catch in you script when STOP 
  426. button is pressed. After you press Continue - this demo will simply be terminated.
  427. #
  428. :Lstop
  429.